package com.atguigu.daijia.driver.service;

import com.atguigu.daijia.model.vo.driver.CosUploadVO;
import org.springframework.web.multipart.MultipartFile;

public interface CosService {


    /**
     * 上传
     * @param file
     * @param path
     * @return
     */
    CosUploadVO upload(MultipartFile file, String path);

    /**
     * 获取临时图片的URL
     *
     * @param path 图片的路径
     * @return 临时图片的URL，如果获取失败则返回null
     */
    String fetchTemporaryImageUrl(String path);
}
